<#include "/common/pagerForm.html"> 
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>


<form name="equipmentCondition" rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus"
                value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='equipmentCode.C,colon'>设备编号：</@label>
                </label>
                <input type="text" name="equipmentCode" value="${condition.equipmentCode!''}"/>
            </li>
            <li>
                <label>
                    <@label key='equipmentText.C,colon'>设备描述：</@label>
                </label>
                <input type="text" name="equipmentText" value="${condition.equipmentText!''}"/>
            </li>

        </ul>
        <ul class="searchContent">
            <li>
                <label><@label key='equipmentCategory.C,colon'>设备类别：</@label>
                </label>
                <input class="look" id="categoryLookup.categoryCode" name="categoryCode" value="${condition.categoryCode!''}" type="text" postField="categoryCode" suggestFields="categoryCode,categoryText" 
                suggestUrl="${rc.getContextPath()}/manage/emCategory/categoryDropdown" lookupGroup="categoryLookup" />
                <a class="btnLook" href="${rc.getContextPath()}/manage/emCategory/categoryLookup" width="700" height="300" rel="categoryLookup_dialog"  lookupGroup="categoryLookup" title="<@label key='queryEquipmentCategory.D'>设备类别选择<</@label>"></a>
            </li>
            <li>
                <label><@label key='equipmentStatus.C,colon'>设备状态：</@label>
                </label>
                <input class="look" id="statusLookup.statusCode" name="statusCode" value="${condition.statusCode!''}" type="text" postField="statusCode" suggestFields="statusCode,statusText" 
                suggestUrl="${rc.getContextPath()}/manage/equipmentStatus/statusDropdown" lookupGroup="statusLookup" />
                <a class="btnLook" href="${rc.getContextPath()}/manage/equipmentStatus/statusLookup" width="700" height="300"  rel="statusLookup_dialog"  lookupGroup="statusLookup" title="<@label key='queryEquipmentStatus.D'>设备状态选择<</@label>"></a>
            </li>

            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            <@label key='query.B'>查询</@label>
                        </button>
                    </div>
                </div>
            </li>
            <li class="advancedQuery" >            
                <a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
                    <@label key="advancedQuery.C">高级查询</@label>
                </a>
                <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
            </li>
        </ul>
    </div>

<div id="collapsablePanel" style="display:none;padding-top:10px;" >
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='specModel.C,colon'>规格型号：</@label>
                </label>
                <input type="text" name="specModel" value="${condition.specModel!''}"/>
            </li>
            <li>
                <label>
                    <@label key='purpose.C,colon'>设备用途：</@label>
                </label>
                <input type="text" name="purpose" value="${condition.purpose!''}"/>
            </li>
            <li>
                <label>
                    <@label key='location.C,colon'>设备位置：</@label>
                </label>
                <input type="text" name="location" value="${condition.location!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='manufacturer.C,colon'>生产厂家:：</@label>
                </label>
                <input type="text" name="manufacturer" value="${condition.manufacturer!''}"/>
            </li>
            <li>
                <label>
                    <@label key='usageYears.C,colon'>使用年限：</@label>
                </label>
                <input type="text" name="usageYears" value="${condition.usageYears!''}" class="digits"/>
            </li>
            <li>
                <label>
                    <@label key='useDepartment.C,colon'>使用部门：</@label>
                </label>
                <input type="text" name="useDepartment" value="${condition.useDepartment!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='assetValue.C,colon'>资产值：</@label>
                </label>
                <input type="text" name="assetValue" value="${condition.assetValue!''}"/>
            </li>
            <li>
                <label>
                    <@label key='assetLevel.C,colon'>资产等级：</@label>
                </label>
                <input type="text" name="assetLevel" value="${condition.assetLevel!''}"/>
            </li>
            <li>
                <label>
                    <@label key='assetCode.C,colon'>固定资产编号：</@label>
                </label>
                <input type="text" name="assetCode" value="${condition.assetCode!''}"/>
            </li>
            </ul>
            <ul class="searchContent">
            <li>
                <label>
                    <@label key='createDateTime.C,colon'>创建日期从：</@label>
                </label>
            
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxCreateDateTime}"  name="minCreateDateTime" value="${condition.minCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minCreateDateTime}" name="maxCreateDateTime"  value="${condition.maxCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key='memo.C,colon'>备注：</@label>
                </label>
                <input type="text" name="memo" value="${condition.memo!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='modifyDateTime.C,colon'>修改日期从：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17"  max_Date="{maxModifyDateTime}" name="minModifyDateTime" value="${condition.minModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>    
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minModifyDateTime}" name="maxModifyDateTime"  value="${condition.maxModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
                <li class="lockFlag">
                    <div >
                        <label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
                            <option value=-1><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                        </select>
                    </div>
                    </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='createUser.C,colon'>创建人：</@label>
                </label>
                <input type="text" name="createUser" value="${condition.createUser!''}"/>
            </li>
            <li>
                <label>
                    <@label key='modifyUser.C,colon'>修改人：</@label>
                </label>
                <input type="text" name="modifyUser" value="${condition.modifyUser!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='purchaseDateFrom.C,colon'>购入日期从：</@label>
                </label>
            
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxPurchaseDateTime}"  name="minPurchaseDateTime" value="${condition.minPurchaseDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minPurchaseDateTime}" name="maxPurchaseDateTime"  value="${condition.maxPurchaseDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
    </div>
</div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="equipment_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="950" height="520" rel="equipment_tab"  title="<@label key='addEquipment.D'>新增设备</@label>"href="${rc.getContextPath()}/manage/equipment/addEquipment?navTabId=${navTabId!''}"><span><@label key="add.B">新增</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="equipment_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="950" height="570" rel="equipment_tab" 
            href="${rc.getContextPath()}/manage/equipment/modifyEquipment?id={equipment_id}&navTabId=${navTabId!''}"title="<@label key='editEquipment.D'>编辑设备</@label>"><span><@label key="edit.B">编辑</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="equipment_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="950" height="560" rel="equipment_tab"
            href="${rc.getContextPath()}/manage/equipment/viewEquipment?id={equipment_id}&navTabId=${navTabId!''}"title="<@label key='viewEquipment.D'>设备详情</@label>"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
             <@buttonRight menuCode="equipment_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/equipment/deleteEquipment?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelEquipMent.M'>确认要删除选择的设备状态吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="120%" layoutH="160">
        <thead>
            <tr>
                <th width="25"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="110" orderField="equipmentCode"<#if (page.orderField?? && page.orderField == 'equipmentCode')>class="${page.orderDirection!''}"</#if>><@label key='equipmentCode.C'>设备编号</@label></th>
                <th width="120" orderField="equipmentText"<#if (page.orderField?? && page.orderField == 'equipmentText')>class="${page.orderDirection!''}"</#if>><@label key='equipmentText.C'>设备名称</@label></th>
                <th width="100" ><@label key="workUnitCode.C">作业单元编号</@label></th>
                <th width="100" orderField="specModel"<#if (page.orderField?? && page.orderField == 'specModel')>class="${page.orderDirection!''}"</#if>><@label key='specModel.C'>规格型号</@label></th>
                <th width="100" orderField="categoryCode"<#if (page.orderField?? && page.orderField == 'categoryCode')>class="${page.orderDirection!''}"</#if>><@label key='categoryCode.C'>设备类别</@label></th>
                <th width="80" orderField="statusCode"<#if (page.orderField?? && page.orderField == 'statusCode')>class="${page.orderDirection!''}"</#if>><@label key='equipmentStatus.C'>设备状态</@label></th>
                <th width="100" orderField="assetCode"<#if (page.orderField?? && page.orderField == 'assetCode')>class="${page.orderDirection!''}"</#if>><@label key='assetCode.C'>固定资产编号</@label></th>
                <th width="100" orderField="purchaseDate"<#if (page.orderField?? && page.orderField == 'purchaseDate')>class="${page.orderDirection!''}"</#if>><@label key='purchaseDate.C'>购入日期</@label></th>
                <th width="100" orderField="purpose"<#if (page.orderField?? && page.orderField == 'purpose')>class="${page.orderDirection!''}"</#if>><@label key='purpose.C'>设备用途</@label></th>
                <th width="100" orderField="usageYears"<#if (page.orderField?? && page.orderField == 'usageYears')>class="${page.orderDirection!''}"</#if>><@label key='usageYears.C'>使用年限</@label></th>
                <th width="100" orderField="location"<#if (page.orderField?? && page.orderField == 'location')>class="${page.orderDirection!''}"</#if>><@label key='location.C'>设备位置</@label></th>
                <th width="80" orderField="useDepartment"<#if (page.orderField?? && page.orderField == 'useDepartment')>class="${page.orderDirection!''}"</#if>><@label key='useDepartment.C'>使用部门</@label></th>
                <th width="80" orderField="manufacturer"<#if (page.orderField?? && page.orderField == 'manufacturer')>class="${page.orderDirection!''}"</#if>><@label key='manufacturer.C'>生产厂家</@label></th>
                <th width="80" orderField="assetValue"<#if (page.orderField?? && page.orderField == 'assetValue')>class="${page.orderDirection!''}"</#if>><@label key='assetValue.C'>资产值</@label></th>
                <th width="80" orderField="assetLevel"<#if (page.orderField?? && page.orderField == 'assetLevel')>class="${page.orderDirection!''}"</#if>><@label key='assetLevel.C'>资产等级</@label></th>
                <th width="80" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key='memo.C'>备注</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key='lockFlag.C'>锁定标记</@label></th>
                <th width="50" ><@label key='attachmentCount.C'>附件数量</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as equipment>
            <tr target="equipment_id" rel="${equipment.equipmentCode!''}">
                <td><input name="ids" value="${equipment.equipmentCode!''}" type="checkbox"></td>
                <td>${page.startRow + equipment_index}</td>
                <td>${equipment.equipmentCode!''}</td>
                <td>${equipment.equipmentText!''}</td>
                <td>${equipment.workUnitCode!''}</td>
                <td>${equipment.specModel!''}</td>
                <td>${equipment.categoryCode!''}</td>
                <td>${equipment.statusCode!''}</td>
                <td>${equipment.assetCode!''}</td>
                <td>${(equipment.purchaseDate?string("yyyy-MM-dd "))?if_exists}</td>
                <td>${equipment.purpose!''}</td>
                <td>${equipment.usageYears!''}</td>
                <td>${equipment.location!''}</td>
                <td>${equipment.useDepartment!''}</td>
                <td>${equipment.manufacturer!''}</td>
                <td>${equipment.assetValue!''}</td>
                <td>${equipment.assetLevel!''}</td>
                <td>${equipment.memo!''}</td>
                <td>
                <#if equipment.lockFlag?? && equipment.lockFlag == 1>
                    <@label key="yes.C">是</@label>
                <#else>
                    <@label key="no.C">否</@label>
                </#if>
                </td>
                <td>${equipment.attachCount!'0'}</td>
            </tr>
        </#list>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>







<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});


</script>

